package com.hd123.rumba.gwt.widget2.client.fielddef;

public class EmbeddedFieldDef extends FieldDef {

  public EmbeddedFieldDef(String name, String caption) {
    this.name = name;
    this.caption = caption;
    this.nullable = true;
  }

  public FieldDef clone() {
    return new EmbeddedFieldDef(name, caption);
  }

  public boolean validateText(String text) {
    return validate(text);
  }

  public boolean validate(Object value) {
    return true;
  }
}
